package cn.byapps.attendance.service;

import java.util.List;

import cn.byapps.attendance.entity.Clazz;
import cn.byapps.attendance.entity.Dept;
import cn.byapps.attendance.entity.Dorm;
import cn.byapps.attendance.entity.Student;
import cn.byapps.attendance.entity.XlsStudent;
import cn.byapps.attendance.util.DataTablesResult;
import cn.byapps.attendance.util.Pager;

public interface StudentService {

	/**
	 * 获取分页查询Person对象
	 * 
	 * @param curPage
	 * @param pageCount
	 * @return
	 */
	public List<Student> find(int curPage, int pageCount);

	/**
	 * 获取分页对象
	 * 
	 * @param curPage
	 * @param pageCount
	 * @return
	 */
	public Pager<Student> getPage(String curPage, String pageCount);

	/**
	 * 查询所有Person对象的总数
	 * 
	 * @return
	 */
	public int countAll();

	/**
	 * 查询所有Person对象
	 * 
	 * @return
	 */
	public List<Student> findAll();

	/**
	 * 通过ID查询Person对象
	 * 
	 * @param pid
	 * @return
	 */
	public Student getById(String pid);

	/**
	 * 增加Person对象
	 * 
	 * @param p
	 */
	public void addPerson(Student p);

	/**
	 * 更新Person对象
	 * 
	 * @param p
	 */
	public void updatePerson(Student p);

	/**
	 * 通过ID删除Person对象
	 * 
	 * @param pid
	 */
	public void deleteById(String pid);

	public List<Clazz> findClazzes();
	public List<Dorm> findDorms();
	public List<Dept> findDepts();

	public DataTablesResult<Student> getData(Integer draw, int pos, int rows);

	public List<XlsStudent> getXLSData(String dept, String clazz);

	public DataTablesResult<Student> getData(Integer draw, int pos, int rows, String dept, String clazz);


}
